Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.platform.TemplateSources.contentView.contrib--contentViews

This contribution is part of XML component org.nuxeo.platform.TemplateSources.contentView.contrib inside nuxeo-template-rendering-jsf-9.10.jar /OSGI-INF/content-view-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="TEMPLATE_USAGE">
    
          <title>label.template.usage</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
    
          <pageProvider name="template_based">
            <property name="coreSession">#{documentManager}</property>
            <parameter>#{templateActions.templateAndVersionsUUIDs}</parameter>
            <parameter>#{templateActions.checkedInVersion}</parameter>
          </pageProvider>
    
          <showFilterForm>false</showFilterForm>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{currentDocument.id}-#{templateActions.showVersions}</cacheKey>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="TEMPLATE_USAGE">

      <title>label.template.usage</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <pageProvider name="template_based">
        <property name="coreSession">#{documentManager}</property>
        <parameter>#{templateActions.templateAndVersionsUUIDs}</parameter>
        <parameter>#{templateActions.checkedInVersion}</parameter>
      </pageProvider>

      <showFilterForm>false</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{currentDocument.id}-#{templateActions.showVersions}</cacheKey>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>
  </extension>